import Vue from 'vue'

export let state = Vue.observable({
    name: '张三',
    age:38,
})

export let mutations = {
    changeName(name) {
        state.name = name
        console.log(state.name)
    },
    setAge(age) {
        state.age = age
        console.log(state.age)
    }
}
